make use of outputExtractions

split up RelatedTuple patterns into different ones for different output formats.
however, this has the effect that all possible RelatedTuple patterns now match, not just the longest.
need a way to select longest match only, or a way to specify disjuncts for output.