Fix and/or remove a number of broken links.

Use known link targets from the _reference.md file in the generator
where possible.
Merge branch 'master' into 3.6