Allow a third argument to `match groups` which specifies a dancer subset.

Provide the third argument as an argument to the pattern function as well.