C4Script: Allow more format flags

In addition to field width and precision, also accept sign flags (+, -,
<space>) and the "alternate output" flag (#).