Fix bug: need to use resize, not reserve.
Fix bug in constructor: need to call ndn_BinaryXmlEncoder_init.