added a small fix to correctly use the templated parameter in curve
added another small fix
modified the test code to use the templated version of curves and beziers
fixed a small template compile time bug