Receive references in replace_copy_if's functor to avoid significant per...

...formance penalty.