Allow calling registerEnumTransform on the Adapter class

This will fix #786