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