fixes #140 Pre-size the fifo before appending data during nonleaf
serialization. Assume the fifo is about 1kb larger than the read buffer
(in practice, the fifo is 5 bytes smaller than the read buffer).