Fix key check for setter when given an object
Merge pull request #6 from mhart/patch-2

Fix key check for setter when given an object