Use a bounds cache in sequentialflow.py, toher minor tweaks.