First off - I have the same weird issues in the designer, esp. with tables. Glad I am not alone.
Second, under the Publish options, you'll find Export Source Files - that saves the template "unpacked". To pack it back up, right click the manifest.xsf in the source files and select Design, then File > Save As to save as an .xsn again.
Always always always have a backup before you tinker with the source files.
The form views are the XSL files. They are .... fun. ;)