Modify _.extend to check for own properties

_.extend is intended to remain primitive in nature (as per issue #123), so this may be an unnecessary change. 

This fix checks for the source object's own properties before extending a property. It includes the code from Dimik's comment fixing issue #1739.