fixed bug when parsing types with synonym and parameters.