First working version of aggregate with the scidbdf class (but the syntax is slightly different than standard aggregate)