cpp: test: Fix FormatTools test to work with Boost 1.42

Old versions of Boost don't provide an ostream operator for
std::array.
cpp: test: Fix FormatReader test to work with Boost 1.42

Older versions don't cope with equality comparison of
variants using gtest EXPECT_EQ but succeed when using
raw ==.