fix support for named_fun_expr