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

Work on #6175. This is the second half of the work started in #6368.
Merge pull request #6374 from bwignall/assert_6175_arrayequal_2

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