Change subclass equality implementation.