SI-7616 Avoid ClassCastException in scala.concurrent.impl.ExecutionConte...

...xtImpl

Adds test to scala-concurrent-tck