Techtree editor fixes (#399)
* Fix the Tech Tree Editor throwing errors after undoing a paste or duplicate
* Fix the Tech Tree Editor's game preview throwing errors on broken links or loops
* Fix the old tech tree graph view moving items placed by the new Tech Tree Editor
* Fix the Tech Tree Editor keeping unsaved changes after choosing Discard on close
* Stop the Tech Tree Editor listing items as missing when another tech tree has them
* Fix items added or aligned in the Tech Tree Editor overlapping in game