I have been told (by this Forum) to leave about 0.5mm gap per metre of track if you are coping with big temperature changes. I have tightened my trackwork up a bit since getting the loft properly insulated (in the eaves) - which has reduced winter-summer temperature differnces by a factor of at least 2. As to painting baseboards, again I have heeded advice, although I can't say my pine+sundeala/MDF efforts have moved much in the few years they have been up there. I reckon, for what it is worth, that the problem will be MUCH worse in a damp outside shed than anywhere else.