Fix compile warnings about implicit conversions during iteration

Remove the unused indexedLocal container, we don't need it
and never really used it. I wrote this code with that bug 7 years
ago, funny how noone ever noticed!
1 job for master in 33 minutes and 35 seconds (queued for 57 minutes and 49 seconds)