Add:

    assert(aggTableIndexMap.get(col.expression) != null);
    assert(topGroupByExpressions.get(col.alias) == null);