Support enums

Fixes #63