When copying pages, update page ID fields in their revisions. Fixes #837