Support switch template instructions

The form is :
{'case', SwitchVariable, Value, Instructions}.
This completes #138 "Support conditional template instructions".