Add Swig template support