Format attributes to a string.
attributes |
a GenericSet mapping attribute names to Variant values |
attr_separator |
the attribute separator character |
key_value_separator |
character separating key and values |
the string representing attributes, or null in case there are no attributes |