How to implement TwoWayWeakMap? Using WeakRef?

The problem all of the implementations have motivated me to open this issue: