core: FIX: autostartable components are not reused in injection when using hot reload

add a test for that, and fix the problem: we need to consider the classes loaded for
autostartable components as cold classes.
core: make cache disabling configurable