Vars: Add new attach method for bool types too.
Fix small warning.
Vars: Support functions and add FunctionButton widget for activating closures etc.