Fix startkey and endkey doc._id in iterview queries