Improved sitedef_parser_trim_parse_tree().

Replace source, path and path_prefix terminals with their respective children.