Implement GroupedVar logic to substitute nulls for columns not grouped
in the current grouping set.