Dump/lock didn't export foreignDep
Now that dump/lock are implemented in latest nimble version, I'm trying to index all packages.json dump/lock to get `foreignDep`, since they are inside a `when` block, and I'm not in the OS matched by when, that information didn't get exported.

I also noted this same behavior for documentations ie: [readConsoleInput](https://nim-lang.org/docs/winlean.html#readConsoleInput%2CHandle%2Cpointer%2Ccint%2Cptr.cint) source points to [non WinAnsi](https://github.com/nim-lang/Nim/blob/version-1-6/lib/windows/winlean.nim#L1114) mostly because it may be created in a Linux machine and evaluated to else.