[BUGFIX] lineNumber count in Template Analyzer

ExtendedTemplateService
=======================
* fix/improve ExtentedTemplateService->lineNumberToScript
* don't prepend additional LF in ExtentedTemplateService->ext_outputTS
* remove obscure empty line removals in ext_outputTS and ext_formatTS

TemplateAnalyzerModuleFunctionController
========================================
* use local $hierarchyInfo to fetch template titles

Resolves: #54897
Releases: 6.2
Change-Id: Ia01a89af49d72ed47bef6430042e260af0de3907
Reviewed-on: https://review.typo3.org/26747
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel