More fixes.

Also profiling shows no adverse effect of sorting nodes. Path [re]generation is also fast.
`OnAutogeneratePathClick` is hot because of  `DisplayNode`→`OnAddNodeClick` logic (control rendering is too slow).