Converted fitting objects to templates
Ensure templated functions are built