Missing imports in range

These three parts in `put`/`doPut`/`putChar` needed `std.string` for `format` to print out a proper diagnostic in case of failure.