Added support for enum types as properties. Fixes #22