Fix a regression where writing a ByteBuf are discarded
Add the 'nextBufferType' parameter to ByteArrayEncoder like did to StringEncoder / Consistent parameter order