Returns true if this.type equals to other.type.
true
this
other
Resolves some Type singleton issues with List, Set and Map.
bool equalsType(TypeInfo? other) => _typeWrapper == other?._typeWrapper;