expr_to_fun function

Convert expression into function object.