Add statically overloaded version of isinstance()