Fix int-ratio variable formatting when the input is NaN, which can happen when calculating the standard deviation, if all the values are infinite. Fix keyboard sample-range selection. Deselect all samples when right-clicking a sample graph. (cherry picked from commit d33fb0e7)