[encode_test] Add a test for all omitempty types.