fix bugs in parsing templates tags

update tag 'ifchange', now its closing tag is 'endifchange'