Check that doc ids are consistant
doc of RawDoc is now a str type to preserve rawness
Version increment