Require firstKey and lastKey on IntMap to be tail recursive.
Merge pull request #2183 from mt2309/tailrec-intmap

Require firstKey and lastKey on IntMap tail-recursive.