No need to manually hash resources

hash_resources was going to a lot of trouble to hash the resource, but a resource is a namedtuple, which is already hashable as is, so we can just use them as keys directly.