Modified parse_node_print_tree() to improve drawing of tree.

Inlined print_parse_tree() functions in site.c and template.c.

Added REALLOC() macro for checking realloc() calls.