From: New Hampshire
April: GB surrenders unconditionally to Fr. Fr takes Scotland, Ireland & Malta as territory (would have been Wales if the dumb Swedes had figured out how to get there from Glasge). 1i Swedish Garrison in Dublin vanishes. Not repatriated to either Sweden of France, just removed.
I've been seeing some similar things. France invades Britain, drops garrisons in Dublin and Edinburgh. The game has no problem with them as long as the war's on, and recognizes them for purposes of establishing a claim on those provinces at treaty time. But when the war ends, even though Ireland and Scotland become French territory, the garrisons disappear. Not repatriated so far as I can tell, but can't be sure about that.
I suspect this has something to do with the new temporary access after peace. Both countries have access to one another's territory, so it may be that the game for some purposes doesn't recognize those provinces as truly ceded until the temp access period is over.
Probably related glitch:
Spain surrenders to France, France takes provinces. On the way out, France tries to drop some factors from corps into garrison in the newly ceded territory, but can't. This also suggests that the game is treating those territories as still Spanish for the time being.
I neglected to save a file, but I could recreate a similar situation if this one hasn't already been figured out.
At the time of surrender, if both sides have forces in either side’s capital cities, then they are removed (refer to section 6.4.2, subsection Withdrawal From Capital Cities). Also, the ceded provinces should be recognized immediately but neither side is allowed to garrison the other side’s capital cities (similar to enforced access) during the temp access period.
We fixed a few issues surrounding temp access (see bug list) in the next patch (now 1.02d), which I hope will be up sometime today or tomorrow (at the latest).