Range#size not supported under 1.8.7 and 1.9.3. Changed to  Range#to_a.length.
Array#to_a deprication warning under 1.8.7. Change to worse looking [*ary].