Porting some tests from 2.0, changed MemoryPoolWriter binary write funct...

...ion to WriteRawBytes
Does that mean you want this change in another PR?