Make resources friendly to comparisons and collections.