added test case for nested enum serialization
bugfix for nested enum serialization
Merge pull request #153 from wheeltz/master

Bugfix for #151