add group function ( firstvalue / lastvalue )

and modify for it ( dataref, groupdatagenerator .. )