check hasOwnProperty before restoring proto
Don't throw when native prototype has enumerable properties
Merge pull request #63 from eivindfjeldstad/master

Avoid infinite loop when a native prototype has an enumerable property