reorder template
new, Aggregate custom method + tests
deprecate type-specific aggregates; rewrite Count
implement Sum custom method
implement GroupBy as custom methods; deprecate type-specific versions