Finished (?) templating with particle type; now compiles and runs fine with brute force