textproc: more statistics for frequency groups
textproc: improve frequency counter performance

Emit each line (tokenGroup, count, frequency) as a token instead of
creating a single huge token with all the output lines.