Anything that keeps the temperature relatively constant will save electricity over something that lets it fluctuate. That being said a dimmer doesn't consume much power on its own where as a thermostat will consume a little bit of power. All in all you would do better by insulating your enclosure. However with the cost of heating a snake cage you may spend more in the insulation than you would save in electricity.