Fixed segment bug in PiecewiseConstantDualGridScalarSpace