Fixed Element broadcasting Attribute objects in some cases, instead of KeyValuePairs.
Added Attribute.ToKeyValuePair()