Raise TypeError when invalid arguments are passed to instanceof().