Expr: implement generic expression walker.

New utility gnm_expr_walk handles walking over an expression with the aim
of either looking for something or rewriting the expression.