Fixing nesting in GsxObject to_xml