Implement update-on-demand variable substitution with small interpreter.