Fix xyrange bug when wavelengths extend off CCD; still not fully covered by unit tests