BUG: inplace sort was making self.dither None. Added extra line in _differential_evolution to avoid this. Added test to ensure that self.dither is not None.