Render byte[] properly in the cli

We recently noticed that the cli doesn't render byte[] properly (reported in #1663). This patch fixes that.
These methods can be private (`formatValue()` is used by `VerticalRecordPrinter`).