Add fnArityRequired method for getting the number of required parameters
to a function.
Add ability to call a function with optional args.