Fix usage of SWIG_Traits_frag in traits_ptypen