fix ext source_urls templating bug, rework easyconfig tests, refactor resolve_template function