Convert the argument list into a params array

Fixes issue #89