Add __hash__ to Link so that Packages correctly hash in resolve

Reviewed at https://rbcommons.com/s/twitter/r/247/