Fix bug where serialize_packed could panic on malformed input.
Fix bug where serialize_packed could panic on malformed input.

maurer/capnproto-rust,tempbottle/capnproto-rust,dwrensha/capnproto-rust,placrosse/capnproto-rust