Made reduce aggregation happen in the unsharding function.
Makes unsharding happen in the unshard function.

Previously unsharding was being done in the query language layer.