Scene and DualScene reimplement the concept of segments, so that analyses using the next frame are now truly possible.
Small insignificant fixes in analysis.py