Use destructured arguments when looping through pairs

Minor refactoring of looping behavior for aggregation
Merge pull request #15160 from sgrif/sg-destructured-each

Use destructured arguments when looping through pairs