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

Fixes #5470.