Used the more general ComponentIdentifier type in diagnostic dependency result implementations. Added more testing.