Some array enumeration / loops causing problems

These loops were getting hung on a prototype array property "stackSize." I updated to sequential for loops, and all is well.

I would _love_ to know where this "stackSize" property has been coming from. I've been encountering this issue constantly lately, and it has proved resistant to Googling.