Added support for {% from template import func as blah %} and testcases.