added tracking of the current dictionary node to solve

This speeds it up a bit because then I only have to operate on the
current node and not find that node from the root every time I want to
check something.