JIT: rewritten CheckArgs() routine