Generate a grid with a specified resolution in the parameter space.
The resolution for categorical parameters is ignored, these parameters
always produce a grid over all their valid levels.
For number params the endpoints of the params are always included in the grid.