MAINT: combined two if statements into one in _differential_evolution, added a test to make sure maxfun wasn't exceeded during the actual minimization.