Advanced timing may cause the motor to run a little hotter, causing the problem. Realistically their shouldn't be any spark when the ignition is turned off so timing shouldn't directly cause the issue.
Raising the idle exposed more of the transfer slot and is allowing fuel to be pulled in after shut down. Reset the idle to where it was before and add a couple of degrees of initial timing to get the idle speed you need.