fix perl_to_xml for blessed objects inside arrays