Add reference queue support to WeakRef.

* test/test_weakref.rb: Test reference queue logic.