Check hasOwnProperty when iteration over keys on an array.
Merge pull request #5 from bmac/check-has-own-property

Check hasOwnProperty when iteration over keys on an array.