Stats: Make "groups" and "types" accept wildcards

The "fields" parameter to indices stats accepts wildcards, but
the "groups" and "types" parameters don't.