Fix exception message and handling of associative array of arguments

Fixes #8. @cordoval reported a failure when an arguments array has no
numeric indexes.

The fix includes:

- Changing the exception message to be a bit clearer
- Converting an associative array of arguments to a normal array