cache function argument completions; clean up debug output