Lazily load enum mappings.

Closes #9.