PIPET-36: serialize the test matrix directly to the output stream
instead of serializing it into a string and reading it back as a Map.

The should prevent the GC loops causes by the excessive about of String
churn