Give PiecewiseFunction a more sensible default keyfunc.