added test case for nested enum serialization
bugfix for nested enum serialization