introduce ewise_expr_base to rand_expr (tested)