Fixes bugs in Dictionary caused by certain keys

Dictionary has bugs when attempting to store items under the keys "__proto__" or "hasOwnProperty".  This PR fixes those bugs.