84b3a17e2b
This commit prioritizes inner scopes above outer scopes (before this commit, inner scopes had lowest priority). NB: really it's not precise enough too, because explicit importing scope should have higher priority than inner scopes. Also fixes problem with total Kotlin resolve test introduced in previous commit.