Use const reference in aggregators
Remove unused function
Merge pull request #688 from gintenlabo/fix-680

Use const reference for aggregator arguments (implements #680)