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

Work on #6175. This is the third (and final) "half" of the work started in #6368.