Random tempering of Gaussian-type geminals. III. Coupled pair calculations on lithium hydride and beryllium