new std.array.replaceLast

moved string imports into static if

worked in some review

whitespace damn it

style fixes

rebase and style fixup