be a bit smarter about paren insertion for functions