Implement nested error collection with start() and end() in ErrorCollector.