validate single tag should use TYPEDEF

test if type & typedef are used together.
Added tests for duplicate and mix of type/typedef