Fix fixes in navigator extension element select.

Fix update of JSON string in response to changes in element selection.
Fix menu level label in response to chagnes to element selection.
Fix BFS traversal bug that causes incorrect references to be generated in cases where a select node is unlinked (and thus re-initialized).