Make folding more robust against null values.
Add live templating (for definers for now).