WIP: Cross-reference stdlib from manual

This PR add cross-references between chapters of the manual and types, constants and functions in the standard library reference, now that I know the magic sphinx incantations to do so.

Minor typo corrections and formatting changes are also included.

Will continue to add to this when I am bored.

Even though this is WIP, this branch is mergable at any time.
leftover merge artifacts here?