Smarter _instancecheck_ override