Merge pull request #3035 from 9rnsr/fix8648

Issue 8648 - No error line number with incomplete template
fix Issue 11813 - Improve IFTI error diagnostic
fix Issue 11814 - Unnecessary error messages "does not match ..." on IFTI failure