Fix a bug from attempting to generate the transport types for references