@DarkDimius you are saying this line should be the following?

    val newT = mutator(oldT, tree, info.contexts(i))