Added an option to strip function tags from trees.