Fixing serialization of unique ids in CurveDefinitions