Fixed duplication of typedefs.