addresses issue #32 where line fold state is not being correctly persisted after modifying document. Consequently restoring line folds results in wrong folded regions.