Added exiter.wait to do_a_replace_from_batched_replace, fixing the second part of #666, it seems.
Removed a bunch of debugging cruft.