An alternative Ruby implementation to the standard WeakRef.