Removed for-in loops for arrays. Added hasOwnProperty for for-in loops over Objects.