Changed enum serialization to use text instead of numeric values.