fails:Set#replace raises RuntimeError when called during iteration
