fix array for-in to only process own properties of array

I was having a nightmare of a time with this. An array prototype property, stackSize, was getting processed as data.

This check ensures only real array values will get processed.