serialize cache when closing ReaderUI other than closing document
fix no page field in pos when reflowing