TST: Skip mergesort test if `np.argsort` raises TypeError on any mergesort.

EHN: Add function `array_equivalent` to test if arrays are equal except
for NaN elements at corresponding locations.