Fix IResource.AsDictionary to handle any IEnumerable<IResource>