Update Tpl.php

makes preg_match named subpattern for opening {loop} tag compatibile for PHP versions preceding 5.2.2 (PCRE 7.0)