Add methods for Formatter to output array, xml, and yaml