fix various parts of haxe.xml.Printer