Fix typed array assignment in the |constructPostScriptFromIRResult| function (issue 5470)

Fixes #5470.

(I'll try to create a reduced test case later today.)