Fix hash distributed aggregations

Split distribution strategy and output buffer partition strategy