Fix anonymous classes in generic types.
Update lib.d.ts