Split invoker to invoker and invokerN

- Eliminate optional argument.
- Remove unnecessary check for arguments.length.
- Add unit tests.