new std.array.replaceLast

moved string imports into static if

worked in some review

whitespace damn it

style fixes

rebase and style fixup
Merge pull request #2702 from burner/std_array_replaceLast

new std.array.replaceLast