Fix lowess for constant inputs.

Fix with tests for #1798.