Export hook arguments as an array

First pass at this.

See #50