Move useful dual templates from splineimpl.h to dual.h