So basically, if you want to restore to get rid of the jailbreaking then the only thing that will be different (once you've synced) is the jailbreaking apps, etc will be gone but nothing else (apps from appstore, etc) will be different?
Say I buy an app from the appstore while the phone is jailbroken. I'd assume it would still be there once I do a restore (assuming I've backed it up since buying the app).