Added runtime negative array index checking in compiler (task 4)