Just changed a dict to an OrderedDict when encoding attributes of a Meta element. This helps keep the  attribute in front when serializing.