Controlled repeat filter

Adds filter that repeats every token it recieves a configured number of times.
That number of times is the integer value of the first token it receives.

Closes #6847