sys-file-writer: Simplify use of put_cmp_number(), put_cmp_string().