Fixed the following 2 issues.
- Edge labels exiting a branch could appear in a different order than the order of their destination nodes; they now appear in the same order as their destination nodes.
- If a node's details were reopened while they were in the process of closing, it was sometimes not possible to close them with the Esc key; this has been fixed so they can now be closed.