Fix vertex heap corruption during hyperedge rerouting.