scene-function: Do not set dirty if setting same expression

Also allow subsequent setting of template vars
Add examples to create Visuals using new Function class.