added index analysis on array read/write