more elegant template voodoo

4 jobs for horner_kernel in 16 minutes and 9 seconds (queued for 1 second)