SI-7981 override toSeq in immutable.MapLike and immutable.Set

https://issues.scala-lang.org/browse/SI-7981
This pull request is a way to pay attention to the issue. I'm not sure that it is the best implementation. There are may be faster way.