Stop appending parentheses when inserting a function. 

Instead, show param hints only after the open parenthesis is entered. This fixes #4942 and #4923.