Fix elements inside of directories

Using the Lexer::_template function was returning the modified name of the file. When inside elements/foobar/file.html.php, the modified file name did not inclue the word element. That cause the code after to fail causing the view not to load.   

Tested with & without cache on lots of different views. Seems to work fine.