fixing int key compared to int range

fixed range comparison to convert int keys to strings.
With @glennblock at nodeconf2013.
w00t!