Fixed bug in which anything other than basic state data (markers, selection ranges, and folds) wasn't saved correctly when using the expert preference to store state in a file's "resource fork" (implemented today as extended attributes).