Heating, cooling, insulating arrangements for boreholes or wells