Added better messages for matching when arrays are of different lengths.