Always check dependencies against solved tasks.
Fixed incorrect garbage collection for dependencies and reads.