Added c# statements checking in code blocks at template parse time