Autoall for template types wortking