Add an identity shortcut in equals().