Mark book as dirty when deriving a page in it

Fixes #776