common/chainresampler: less template bloat