Fixed Java implementation of `identityHash` because of @f127f18cff63fa5fa4aabcf9ff9caa9714d2462d