Deserialize packed and unpacked messages

Fixes #23