extremality_test: In discrete case, only run minimality test once
FastPiecewise.plot: Make sure discrete functions also get a legend label