Improve typing annotations for origin and revision modules
This implie fixing RevisionCSVIterator, and updating cli and related tests.