Fix bug where the arity check was incorrectly checking varargs functions
Merge pull request #20 from Netflix/feature-fix-arity-check

Fix bug where the arity check was incorrectly checking varargs functions