feature #2858. Clear and to_xml on streams for VectorAttributes