Hack support for method generators
Support custom naming for extern types