[1.6.x] Fixed some intersphinx references.

Backport of babbf18999 from master