Eliminate generic duplication in `allocPrint`

Since `bufPrint` and `count` both control the writers used internally,
they can leverage type-erased writers while maintaining correct error
handling. This reduces generic instantiations when using `allocPrint`,
which calls both `count` and `bufPrint` internally.
cc25756b3fIan Johnson committed on 1/30/2024, 12:02:18 AMparente392c1a
1 file changedLine totals unavailable