The return value of `dict` is a readonly view of the underlying dictionary, so it should implement `IReadonlyDictionary<'TKey, 'TValue>`.