Fix memory leaks (reference cycles) in replicator