Allow call to registerEnumTransform on Adapter class, fix #786