invariant: fix max argument count

This should prevent once in a blue moon errors regarding argument count. Also makes the function arguments look a little less odd. Any performance hits related to the `arguments` object are as far as I'm aware of extremely negligible.