Weakify the wrapper as well in case the weak dictionary gets deallocated before the objects in it.