fix obj.hasOwnProperty check, dont force to rename every key

- fixes issues #1 and #2
- tests done