BTreeMapKeySerializer: share code between STRING and BYTE_ARRAY