Make collectUpdates return only a single update for all agent updates.

This is a huge speed improvement. Note that world does not use the new mechanism yet, but this doesn’t affect behavior.