Remove unused 'template' arg to _iter_loaders()

After last changes _iter_loaders makes no use of the 'template' argument.