bug5363: HAVING statement regression on 4.0 with COUNT DISTINCT

This bug was caused by the window function addition in the parser.
The mid-rule action of count distinct was converted to an end rule
action without caution. Fixed the end rule action for count distinct
in the parser by adding a in_sum_expr_list rule.