added serialization to CollectionMap after successful changeAttributes #389