Implement a special equality test for frozen objects.