Fix bug when writing an array of buffers and the last buffer has zero size.
Merge branch 'master' of github.com:kentonv/capnproto