Cleaned up WeakReferenceListManager and UniqueSynchronizedQueue

- Got rid of memory leak
- Removed unused public methods