[REG2.063a] Issue 10002 - calling std.algorithm.remove is impure

http://d.puremagic.com/issues/show_bug.cgi?id=10002

This regression is caused by fixing [issue 9415](http://d.puremagic.com/issues/show_bug.cgi?id=9415) with #1527.