VarTemplate: added VarType mask ctor variants.
ScriptWriter: added flags-only ctor.