I don't think we want to support something like typedef V = vector; V<float, 4> so we should make sure that all the places where a typeref has typeArguments are pointing to something which can actually accept typerefs NameResolver might already do this. We should check/test it.
Migrated to https://github.com/gpuweb/WHLSL/issues/77