(PUP-2755) Fix issues after changes from PUP-514
This fixes merge issues that were not automatically done due to files
being moved and changed structurally.
The support for captures_rest was lost. This is now reinstated in
the shared IterativeSupport module and in reduce and slice where the
semantics of "serving_size" are slightly different.