Site runs as expected under SS 4.13. After updating to 5.0 the first element of every datalist looped over in a template is shown twice. Code responsible is SSViewer_Scope::next(), line 317
Uncommenting this solves the problem and has not shown any adverse effects (yet). The database used is SQLite3. SQLite3Query::numRecords() and SQLite3Query::getIterator() seem to return correct values though. I’m at a loss. Have I missed something obvious?