Fix int type inference in range calls
Merge pull request #6 from tivek/patch-1

Fix int type inference in range calls