Adding names for anonymous type constructors