[Fix #17356] Allow {% include %} to be passed a Template instance