util.polcurve: correct function; util.savitzky_golay: crash fix.

polcurve was not consistently using theta in radians.