Use encodeEnumeration()/decodeEnumeration() and implement no-arg constructors