jsondoc broken in devel
### Description

```
nim jsondoc system.nim
.tables.nim(232)          raiseKeyError
Error: unhandled exception: key not found: types [KeyError]
```

The same works fine in 2.0.8

### Nim Version

```
Nim Compiler Version 2.1.9 [Linux: amd64]
Compiled at 2024-08-02
Copyright (c) 2006-2024 by Andreas Rumpf

git hash: 12b968029159ae05b9813095fbe671e4aa57922b
active boot switches: -d:release
```

### Current Output

_No response_

### Expected Output

_No response_

### Possible Solution

_No response_

### Additional Information

_No response_