ParsedGridGenerator should parse the name of the grid and its arguments, instead of relying on external additional variables:
set Grid to generate = hyper_cube(0,1)
instead of
set Grid to generate = hyper_cube
set optional int one = 0
set optional int two = 1