Add function to encode AdditionalProperty messages

It takes in a dict-like object, optionally sorts the items, and returns
a populated message.
2 files changed