Merge pull request #6577 from bwignall/assert_6175_isinstance

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