util: fixed several bugs in the Format module.

* fs.width should never be negative.
Set fs.flDash when a '-' was scanned.
* Added ref attribute to FormatSpec parameter.
* Renamed index to argIndex.
* fs.indexStart/indexEnd are not used by formatValue().
* CharArray in CharArrayWriter must act like a reference.