Added support for "switch" tag
Incorrect data access via this.ctx.root changed to this.tagCtx.view.data