More strict checking for what is allowed as a Mapping object.
Merge pull request #96 from jayd3e/dict-is-too-liberal

Stricter checking for what is allowed as a Mapping object.