Serialize enums automatically

Serialize Enums. This should be compatible to existing user-defined TypeSerializers.