Add resolve tasks generated by imports to dependencies for all use sites after them.
Add tasks results to the index immediately, instead of in batch. This is required for dependent results to be picked up by dependencies.