add NaN check in decent minimizer

15 jobs for check_nans_in_ic in 20 minutes and 53 seconds (queued for 3 seconds)