Call stdexpr directly instead of copying expression
Add support for functions with units