Add formatoutput option to Xml::fromArray