Added parse_node_walk() function.

Replaced parse tree printing for template and sitedef parse trees with
parse_node_walk().