Fix a lot of problems with partial aggregate on planner, EE and tests. Still need work on EE partial agg.