Reducing number of instructions in template markup generation

Adding feature for merging text and expression items after template parsing in order to reduce the number of instructions on IE 7/8