selective_iterator: be more permissive about copying and assigning.