If you try another generic structure like seq, etc... what happens? These errors remind me of ones I've encountered before when working with JS but my memory is fuzzy.
For JS I've done [exports with a JSObject](https://github.com/saem/vscode-nim/blob/master/src/nimvscode.nim), and that might work better.