Check type earlier on.
Update to latest roxygen2.