Group by template as well as field_group_id.