Fixing hasOwnProperty bugs that would only have shown up in specific browsers. Fixes #8