Support all known template types in the autoload creator (see #5857)