Tempering units for temperature control of moulds or cores