Replaced all is_a() calls with instanceof operator

This should be the last of them.  :shipit: