Add reduce_extents, hoist argmin, sum.