Restore serialization test.
Add serialization code for bunch of negotiation types.