Fix various errors in Lagrange interpolator.