=str #15892 Fix ClassCastException in ThunkSource

* and add test
done: https://github.com/akka/akka/issues/16048