[1.7.x] Fixed some intersphinx references.

Backport of babbf18999 from master