Fixed problems in aggr_fun.
- Non-incremental results were not computed correctly.
- Incremental results were also not computed correctly.
- Added non-incremental versions for all operators.
- Added tests to test for both incremental and non-incremental versions.