Added support for collectMode in TermsBuilder to include support for prune_first strategies