Merge branch 'nan_to_inf' into 'NIFTy_6'

Add possibility to cast NaNs to Infs in KL

See merge request !488
11 jobs for NIFTy_6 in 8 minutes and 52 seconds (queued for 1 second)