I'm not exactly sure how to explain my problem. Instead, I'll explain how to reproduce it.
Firstly, you'll need to open the attached .capx file.
Debug the layout. (I usually open the debugger in a separate window)
Next you'll need to create a couple nodes. To do this, press the "1" key to begin placing a node. Click with the mouse to finalize the placement.
Make two nodes in addition to the nodes that are already present on the layout on start.
Place the two new nodes close to the existing nodes (preferably within 200px).
Now, pay attention to global variable "diagnostic2", and middle click node #1.
For some reason I get a value of 3, when it should be a value of 1.
The key-count is too high, as far as I can tell only one instance of the dictionary is selected and it can only have 1 key at most (provided that my setup directions are followed).
The relevant event in the project is #79.
The project is quite messy and not commented in any useful way, however I hope that the issue is isolated enough that my mistake will be evident to an outside observer.