added assign_templates() call when auto-importing a module, otherwise explicit variable assignments were overridden by first template evaluation