Fix generator bug with using primitive types as type parameters

For thrift type:

 list<seq_t>

where "seq_t" is a typedef to "int64", the generator generates the illegal type:

 List<long>

this fixes it to generate:

 List<Long>