Partial de-concurrentize toggle_callbacks

If a node/environment has 2 or more toggles, it's possible they will run in
the wrong order, causing incorrect values to be saved.

Now we sort them by chunk, and run that chunk sequentially.