Tweak how we populate NavBarItems.

Now we will always place child items of a node in the right bar, even if we're
also placing it on the 'top level nodes' list on the left.  This makes things
clearer for users by making it clear that any time you have a node selected on
the left, you can always find its children on the right.  And, it still preserves
the behavior we want where the left list acts as a high level 'table of contents'
for the file.
So you can either have an anonymous function expression, or you can have a declaration with a missing name. In either case, you only need to check the `name` property, not the text.

A subtlety I've realized from you asking this: you can have a property with an empty name (using the string literals `""`/`''` are totally fair game for property names).