Add weak references to class pool<T>