Add MemWriter::clear

This is useful in cases where you're buffering and sending data in a loop, like this: https://github.com/sfackler/rust-postgres/blob/a480ec1cfb94a155dad64cfad821e4c7d1b8dccb/src/lib.rs#L1628-L1674