Problems in the theory of the thermal Casimir force between dielectrics and semiconductors