Add MemWriter::clear