Backport Fix #1101: Do not unbox results of raw JS calls in statement position.

This aligns with the semantics of generics.

(cherry picked from commit 73c4a51c8f1d15f1e6227ba03d544176abf1cd06)