BUG-6522: grow StatementContext collections lazily