Fixed bug in BSplineCurve::getValueAt(t)