Output a reason when implicitly fetching packages.
Fix optional dependencies being always downloaded with the new dependency resolver. Fixes #359.