Added "hasOwnProperty" inside object iterations to avoid 'deep-dredge'

http://stackoverflow.com/questions/12009896/will-hasownproperty-ever-return-false-from-inside-a-for-in-loop