Extend MemPipline.write to support Avro types (CRUNCH-204)
Integration tests for CRUNCH-204)
clean the test code