gm().stream() and gm().toBuffer()

#155 

still need to add tests for `gm().toBuffer()`