Added an ArrayDump function for later debugging if necessary.