Added `range` bif. Closes #1723