904 won't go into passing gear...
Too high an idle speed WILL cause dieseling. Connecting the vacuum advance to manifold vac will cause dieseling (should connect to ported vac). A sticking mechanical advance can cause dieseling. Too hot spark plug heat range can cause dieseling. Carbon deposits in cylinders can cause dieseling.
Just a few places to start...