Optical spectroscopic observations of gamma-ray blazar candidates. IX. Optical archival spectra and further observations from SOAR and OAGH