Validate data sources reference different resources

The proposed fix compares input and output data sources. If they
have the same types and urls, a validation error is thrown.

Closes-bug: #1291380

Change-Id: I09956c2e29c1e12d9e5c28a5c7953f97197b3565
Merge "Validate data sources reference different resources"