Ranges of 1.3-3.5 keV/atom hydrogen and deuterium molecular ions have been measured by a thin-film reflection method. The technique, used here for range measurements in solid oxygen and carbon monoxide targets, is identical to the one used previously for range measurements in hydrogen and nitrogen. The main aim was to look for phase-effects, i.e. gas-solid differences in the stopping processes. While measured ranges in solid oxygen were in agreement with known gas data, the ranges in solid carbon monoxide were up to 50% larger than those calculated from gas-stopping data. The latter result agrees with that previously found for solid nitrogen.