Prepare FastPiecewise for discontinuous functions.