Add all form field flags. Check flags before marking fields dirty.

NoExport (and ReadOnly) fields shouldn't mark the document for saving.
Invalidate cached page count value when inserting and deleting pages.