Revert "Use reserve on the result container in algorithm::map, if possible"

Too complicated to get right, for now.
This reverts commit c65d7c452a88eb31a37dfb3fadae629b494bf314.