Add xmlAttributeMap to serialized values

The cache broke the serialization for virtualproperties with an xmlattributemap attribute, because this wasn't saved when serializing.