Added cumulative count/sum/prod/min/max per #152
Fix small inconsistency for #152
A bit of cleanup for #152