Fixing versioning for classes in namespaces

Fixes #99