Is this a bug in 2.2? I see this happening when on staging server but not on local server.
1) Update code in template with external editor.
2) Upload file to staging server via ftp
3) Click synchronize templates
4) Note that checkboxes are not cleared/updated
5) Note that code was updated using template edit from CP interface.