Serialize enums automatically
Merge pull request #25 from vonloxley/EnumSerialization

Serialize enums automatically