Fix hooks to be a regular object
Merge pull request #1 from wooorm/bug/hooks-array-to-object

Fix hooks to be a regular object