Allow datatype specification for attributes.
Infer numeric type for constants compared with an attribute of specific datatype.
Fix enum serialization in RelaxedEnumConverter.