[Resolver] Big refactoring that handles resolution scopes way better. Overall improvement of handling declaration conditions.
[Resolver] Handle meta-else-condition blocks properly.
[Dom] Removed most WeakReference usages again - always thought it was a good thing to keep them :-/