Added test for #1555
Fixed #1555 bug compiling Range
Fixed tests that failed because of fix for #1555