The Core now gives templates having set the root-flag precedence over normal extension templates.
This ignores the fact that normally the first template of the current page is chosen, following their sorting.

This improves user experience as the user expects the root template to be the one with highest priority.