Nova had a series on pbs a couple months ago. It showed monitor lizards who could count to six (as far as study had progressed) & identify between black and white items. I love my chams but that may be a stretch.
Monitors would almost definitely be the brains of the herp world IMHO. They need to be very adaptable and quick opportunists. I often think that in species that have developed unique specialized traits to increase their ability to survive (and I'm thinking of chammy things like their vision, skin change, unique body forms), some of these traits sort of
replace their need for or dependence on higher intelligence. I don't think I'd describe any of my chams as highly intelligent compared to a monitor.
Specialized traits like binocular vision or color changing doesn't necessarily take more "intelligence" to manage, it just requires a brain that is organized differently. These traits are pretty involuntary responses, not rational reasoning (which is what most people would use to measure intelligence). The cham probably isn't deciding "am I really pissed at this intruder or should I fake it"? before turning color. They see an intruder, the stress hormones go up, chromatophores fire, and voila....color change!
Birds are a good example of taxa that sort of gave up reasonable voluntary thinking (and the brain space it takes) to adapt to better flight. Not only did they end up with lighter smaller skulls, but also gave more of the brain over to support finer vision, depth perception, body balance, etc. More of their behavior is based on instinctive type thought which takes less brain power and space. It always amuses me to think about owls. Humans often use an owl as a symbol of wisdom. Owls are one of the less intelligent birds...they gave it up in exchange for those wonderful eyes and ears.
Another thing humans tend to do is assume that species that are more
socially sophisticated are more intelligent. So, species that react to the world a little more as a human might get this label of being smarter. Maybe it takes a more developed brain to gain the social graces. Maybe the brain developed a bit first, they became more socially complex, which resulted in more brain development etc etc etc. Chicken or the egg?
Well, what do I know anyway? I'm still trying to figure out how to keep my siblings from going for each other's throats while clearing out my Dad's house!