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