Inline serialize() and deserialize() for ConfigOptionEnum