find out if two regular, or typed arrays are element wise equal upto the last element of the shorter of the two arrays