Fixed #15053 -- Improved template extending algorithm.
Updated the debug views.
Added deprecation warning.
Catch recursion with old-style template loaders up-front.
Added documentation.