Issue #20 Add support for enum subtype (de)serialization