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

Adds test to scala-concurrent-tck
Merge pull request #2684 from phaller/issue/7616

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