Support negative indexes in arrays.