Implement WriteExpr. Rename Expr::opname to Expr::opstr.