CNBC's Jim Cramer said investors have gravitated toward a familiar group of stocks as oil prices climb.