fixing int key compared to int range

fixed range comparison to convert int keys to strings.
With @glennblock at nodeconf2013
woo!
Merge pull request #1 from soldair/master

fixing int key compared to int range