removing NewRangeRestriction (all code users RangeRestrictionBuilder; adding restriction error tests for io