Fix helm-package function

- fix an error about wrong-number-of-arguments
- add autoload cookie