Added identity generation for types and methods.