Fixed missing headers on exported TIS files and more

- Fixed BIFFed TIS headers on single and mass export
- Fixed a bug that caused local TIS to be mass exported incorrectly
- Improved WMAP resource creation
- Bugfix in WMAP resource viewer
- Included extended window state in preferences