Poppy: store reference to the ByteArray; add tests and benchmark