make struct.toBuffer() return a buffer as expected
v0.1.5