Tweak Array#replace:

- Use other_w as parameter name
- Use same code for replace and initialize_copy