Improve performance of PrecedenceRelationsTracker.

- Properly size collections.
- Only lookup the allocations that we don't yet have.
- Only form relations when they are broken.
Change method naming to better reflect the new nature of the tracker.
Cleaner code in ResourceUsageTracker.
Dramatically improve performance by avoiding the need to hash
Resources.