Refactor: Refrain from using global variables during node list scanning.
Refactor: Refrain from using global variables during node list scanning.

A closure factory has been introduced.  All state is now kept within
closures.

sh2d/padrinoma