Disambiguate function and variable references in docstrings.