insights: aggregations only capture the match's content if needed for the group type
Created by: chwarwick
Most of the group by types don't need the content of the match just metadata, this change ignores the matches content except when doing capture group matches which rely on it.
Test plan
existing unit test coverage