perf(nodecursor): do not grow/shrink the nodes list

This also enables one to construct a NodeCursor with a fixed size list
of nodes.