Factor out SGIterator from SpanGroup to the AggregationIter class.
- Factored out the piece of code that iterates over a list of spans to aggregate.
- Added unit tests against the AggregationIter class.