Use selected unit when generating preview. [1825]

This adds the “bandInfoEqualityCheck” static method, which is largely
the same as BandInfo.equals, but also verifies that both BandInfo
objects have non-null and equal preferred units.

I’ll need to follow through and determine what IDV/McV code could be
affected by fixing BandInfo.equals…