fix class ::Foo to work like sub naming too (fixes #83)