Added code to support registering custom user type for enums