Optimize assertArrayEquals().

These changes speed up comparisons of one dimensional arrays of primatives
between 98.0% and 99.8% and speed up comparisons of multi-dimensional
arrays between 81.4% and 82.8%