std.math.big.int: fix format functions