If it works on the playground, and it works when you compile the snippet, whats in your projects nimcache that is conflicting/overriding it? Can you clean the nimcache and recompile everything?
Now, just for full disclosure, I have maybe 3 hours of Nim experience, but I have done lots of porting of code from one architecture to another, and that is what I would try with the symptoms you describe.
