Add dist_group_expansion feature

When this feature is active, we expand `dist` and `group`
as build matrix dimension.