Bug fix for ordered log write.

In case buffers are not the same length on each process.
Start transforming arrays in the MpiParams struct into dynamic arrays.