Added sitedef_parser_trim_parse_tree() function.

The sitedef_parser_trim_parse_tree() function finds and removes unneeded
nodes like spaces from the parse tree.

Removed const from parse node parameter to parse_node_walk() to allow
modification while walking.  Also updated functions that delegate to
parse_node_walk().