closes #73: restored some logic to legend code, previous changes were mostly about the styles per scale range.  Testing with different datasets required
closes #73: restored some logic to legend code, previous changes were mostly about the styles per scale range.  Testing with different datasets required

asir6/FusionLab,asir6/FusionLab,asir6/FusionLab,asir6/FusionLab