Fix lowess for constant inputs.

Fix with tests for #1798.
You suggested a test case with some nonzero observations earlier, this is it.