MAINT: clean up wavelets.template.c