renamed functionName to type for crossfilter groups. fixes #9