adds arg checking for var arg JS API functions
chages as per code review
more changes as per code review
Merge branch 'next' into 763_arg_count_for_indexCreate

Conflicts:
	test/rql_test/src/arity.yaml