Prevent duplicates in hook function arrays

If the module was sourced twice, the hook functions would each appear
twice in their hook's array and hence be run twice. Using 'add-zsh-hook'
prevents this.
Merge pull request #8 from andrewmwhite/dedup_hooks

Prevent duplicates in hook function arrays