But then you would need to use `(elementTypeRef ?? codeTypeRef)` instead of `codeTypeRef` everywhere in the subsequent code. The point of these assignments is to base all subsequent computation on the element type instead of the collection type.