BookmarksModel: Correctly store QModelIndex::internalId in data stream

See #1565