Fix a bug in minimality_test_general.  Make fewer tests when there is some continuity.
Fix a bug in FastPiecewise.which_function