viewport: ensure currentlyRenderedRowsLookup is kept in sync ...

... also code comments
update generated code