Require firstKey and lastKey on IntMap to be tail recursive.