Fixed aggregate_by bug for single values coordinates.
Merge pull request #1208 from pelson/aggregate_by_small

Fixed aggregate_by bug for single values coordinates.