Fix bug #12889 - replaceInPlace overlapping array copy error

https://issues.dlang.org/show_bug.cgi?id=12889