Added support for (de)serializing enums
Refactored type conversion code into classes
Merge pull request #64 from dontjee/SupportEnums

Add support for enums