Added ZPL serialization to/from memory