changed order of preloading components and extensions

load extensions before preloading components to have aliases set for
extensions like debug module.