Fix for BH .Sdt meas mode 0 & 1 single pixel files & (unrelated) problem with dividing by increment count. (rebased onto develop)



This is the same as gh-1139 but rebased onto develop.

----

Arithmetic fixes for single-pixel images and images which must be divided by an increment count.