fix for recently introduced regression to sub_range const propagation.