Open
Description
My original where I discovered the issue was more complex, but I distilled it down to the simplest reproducible case I could find which I've placed in this fiddle: https://dotnetfiddle.net/9NzZ0O
Note the final script which produces a null
result when untyped, and throws a null reference exception when a type is supplied.