Optimize assertArrayEquals().

These changes speed up comparisons of one dimensional arrays between 94.5% and 98.9%
and speed up comparisons of multi-dimensional arrays as well.