use @export instead of @S3method for the next version of roxygen2
closes #733: make the hook name accessible inside the hook function

all arguments of a hook function are optional now

this should close rstudio/rmarkdown#17 as well, because when hook is a character string, I will get() it