Kernel now considers DI container modules and scopes during cache
validation.