Upgrade JSDoc

This also fixes the problem where items marked as `@exports` were prefixed everywhere with `module:` and links to them were broken.

Also fix more straggling doc errors.

Fixes #1864