Remove redundant Foldable test for Range.
Add logical operations.