Add initial support for bytes() -> BytesReference instead of
toByteArray()