EPUB writer: Fixed some idrefs to match changes in ids.