Allow passing an output file/buffer to all serializer modules