Fix enum namespacing; add Cargo.lock to .gitignore

Quick fix for new enum namespacing, as well as fixing the test to work after num reform.