Proper NULL handling in max_, min_ and sum_.

- return expr (Value (Maybe a))
- add joinV to join nested Maybes in an expr