fixed bug when splitting/joining chains in comparer chain mode, finishing refactoring Aggregate (not complete)