Support int keys

Check that the key is a string