accommodate non-string key/value

I am having more success when booleans, and possibly numbers, would be converted to string before comparison.
Merge pull request #503 from new23d/patch-2

accommodate non-string key/value