Problem: generates duplicate typedefs with zproject

Solution: guard typedef generation against zproject typedefs.