v.20.7Backward Incompatible Changes

Fix groupArrayMoving and groupArrayMovingAvg for Distributed Queries

The function groupArrayMoving* was not working for distributed queries. It's result was calculated within incorrect data type (without promotion to the largest type). The function groupArrayMovingAvg was returning integer number that was inconsistent with the avg function. This fixes #12568. #12622 (alexey-milovidov).