Make sure ModeDefinition and UniqueTogetherDefinitions objects are always repr()-able.