bugfix amcat.aggregate: use sets, check input