[PATCH v6 2/9] jscript: Fix addressing invalid memory if ref is an argument.