Add support for enum, doesn't seem to work with polymorphic variants though
Merge branch 'feature-add-enum'