fix ItemCollection#range_offset for Ruby 1.9

Range#size does only exist in >= 2.0.0.