Added support for local node value references.

It's sometimes much more convenient to be able to look up
values locally instead of from other trees or including local
node branches.