Fake implementation of WeakRef.
Instead of being freed by the garbage-collector, this implementation is only freed when clear is called.
Use this implementation to help trigger edge cases in algorithms that use weak references.
Checks whether this weak reference has been cleared.
Checks whether this weak reference still contains some data.
Attempts to read the value held by this reference.