Add firstKey and lastKey to LongMap, fixing SI-5151

https://issues.scala-lang.org/browse/SI-5151