Structural Changes And The Nature Of Superconductivity In Rare-Earth Doped Cafe2As2