Add warning if gradient-based optimizer is used with particle-filtering and offer user choice to change mode-finder