TypeNameSerializer now checks length of generated type name.