Adding support for registering enumerated types in a more straightforward way

Original PR #505