detach scope lifetime from expr
Add hacky support for calling functions in expressions.