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

This pull request is a way to pay attention to the issue. I'm not sure that it is best implementation. There are may be faster way.