Fix lowess for constant inputs.

Fix with tests for #1798.
might be ok, it has the name in the title, but it doesn't show any useful line number