Fix Redmine/5748 - make defaults promises work in bundles using classes promise

See the bug report. Defaults promises failed when there was a classes promise defined in the same bundle, because after classes promises, we re-evaluate variables to resolve circular dependencies quickly. Since that variable resolution overwrite the previous overwrite via defaults, defaults were non-functional. Hence the test case :)