modified the fetch_source_curve_geometry to set a default value to the primitive attribute
modified shading point m_triangle_pa variable to be a generic m_primitive_pa variable
fixed some stuff that broke the code
removed a faulty assert and made variable as const
removed an unsafe method to return curves from curve object and added two more safe functions for the same functionality