constant-fold some range operators

the others cause the setting compilation to fail when constant-folded. Not sure yet why.