[encode_test] Add expected binary output for tests as well.

We differ from Apple in a couple ways: Go NaN and Clang NaN are
different but both still represent NaN. Apple serializes dictionary keys
and values with all keys before all values (we interleave them.)