Replace CharWriteChecker and WCharWriteChecker with a single WriteChecker template.
Add support for StringRef in BasicFormatter.