This does sound reasonable. Any hints on how to find such a thing?
If I start looking through all arrays in my script, I'll probably still be looking in a month... I could add logging functions before all array accesses, to log the indices, but that sounds expensive...
~"I never let school interfere with my education"~ -Mark Twain