Fix the end of a negative-ending range for Array#[].