Pass argument count explicitly instead of use arguments.length
Fix typo if/when

Closes #37