use memoize_default instead of strange underscore_decorators in api classes
generalize Completion.follow_definition to Definition._follow_statements_imports
use the generalized _follow_statements_imports internally
use _follow_statements_imports also in the BaseDefinition.params
cast pr.Function to er.Function even in the api.