fixed multiple bugs with special dependencies, now dependants tree is calculated in right way

prune and uninstall now works correctly