CLN: Specialize assert_(np.array_equal(...))

Work on #6175. This is the second half of the work started in #6368.