Dump now dumps to XML file

Make dump more useful. It now outputs the parse tree in human readable
xml format to a file with the same base name as the output file but
with the xml extension.