std.format: clean imports

Maybe what we should do first is to move the frequently-used stuff out of `std.algorithm` into a separate submodule, so that we can import that instead of the entire `std.algorithm` (which is overdue for being split up into more manageable chunks anyway).