Fix names in docstrings and DeprecationWarnings.

Update a number of docstrings and DeprecationWarnings to refer to
the correct methods or attributes.