Fixed|libcommon|MapStateWriter: Writing an arbitrary number of bytes via Writer

Writing a Block directly to the output stream results in the size of
the block being written also. In the case of the wrapped Writer used
by MapStateWriter, we need to use a local FixedByteArray instead.