Fix groupingGroupBy to group correct if the dattype was local
Now subgridurl can be a function