=str #15892 Fix ClassCastException in ThunkSource

* and add test
This allocates a new thunk for each element, intentional?