adding datautils.grouping.ops.stat: apply func to leaves of grouping