api: callVM parameter checks

added argument count based sanity checks

Modified: src/JSNative.c