Only make residual histograms if output_residual_histogram=1 set