Definitely agree with this. Whilst I think he's far from bad as a comedy actor, his best performances have been serious roles. Truman Show and Eternal Sunshine of the Spotless mind, as you mentioned, especially.
Loved the clairvoyant nature of Truman Show. My favourite Carrey film.