Keep the trees and handler dependency graphs indexing consistent when an event sequence permutation is used.