CLN: Change assert_(a is [not] b) to specialized forms

Work on #6175. Changes instances of assert_(a is [not] b) to specialized assertIs[Not](a, b).
Merge pull request #6392 from bwignall/assert_6175_isisnot

CLN: Change assert_(a is [not] b) to specialized forms