Fixed a bug in setArg JS implementation when passing vector args