Fix regression in the way impl class are encoded.