Update references to tasks that have had their ID changed by reordering.