Fix PeriodValueRange, so that construction heuristic on sample06 works.

... while moving it to a separate class.