Fix broken anchors in Sphinx metadata pages (rebased onto develop)



This is the same as gh-469 but rebased onto develop.

----

This PR requires Sphinx 1.2b1 or later and fixes the anchors not found by the linkcheck:
- `metadata-summary.txt`: fix formatting of all anchors