Then and when have the same sound and than and pan have the same sound to me. But I don't hear a difference between Mary, marry and merry.
From a book I was reading this morning, how do you pronounce 'caulk' (as in caulking around a window). For me, it rhymes with dock. Sometimes there is the slightest hint of the 'l' in there but not usually.