Better sanity checking for ranges.
Better sanity checking for ranges.

HIPERFIT/futhark,diku-dk/futhark,HIPERFIT/futhark,ihc/futhark,diku-dk/futhark,ihc/futhark,diku-dk/futhark,HIPERFIT/futhark,ihc/futhark,diku-dk/futhark,diku-dk/futhark