Strong typed enums for serialization