Fix typo in arry idx (ROOT-6056).

(cherry picked from commit e40ee43deb622d03fdbd098c4f9d0b66423b2e02)