WeakIdentityHashMap: fix equals methods. Also fix #224