Serializing a generic collection with generic type

I have discovered recently that Unity in 2020.1 allows for the serialization of generics. I am currently having an issue where I’m working to setup a dictionary to serialize, but at the level the dictionary is declared the generic type is still unknown. I’m using this generic dictionary implementation:

https://github.com/upscalebaby/generic-serializable-dictionary

public abstract class MyMonobehaviourr<T> : Monobehaviour
{
    [SerializeField] private GenericDictionary<int, T> mySerializedDictThatDoesntWork;

    [SerializeField] private Dictionary<int, string> mySerializedDictionaryThatWorks;
}

Like in the above example, when I try to seralize a generic dictionary with an as of yet undefined type it doesn’t work, but when I do so with a concrete type the serializable dictionary implementation works great.

My first question is-- is this a bug? if not, has anyone encountered this issue before or know of a workaround?

After a bit more digging I found the problem, my GenericDictionary<K,V> was marked as readonly. removing this modifier fixed the issue.