Fix exception conditions in ArrayIndexList.java