Fix: enums are now namespaced

See rust-lang/rust#18973
Merge pull request #39 from japaric/fix-enum

Fix: enums are now namespaced