OmeroCpp: Add portability fixes for gtest

Some combinations of gtest and the C++ standard library result in
compile failure due to the objects being tested not having
stream output operators.  Change these assertions to avoid
stream output.
Merge pull request #2831 from rleigh-dundee/cpp-gtest-fixes

OmeroCpp: Add portability fixes for gtest