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).