Extended template_parser_trim_parse_tree().

The template parse tree is now trimmed down to text nodes and expression
nodes.  The text from TEXT and LBRK terminals are merged into text nodes.
Replacement, part and parts nodes are removed.

Added new syntax node operations to implement template parse tree trimming.