My two suggestions to omit 'api.default' or set it to NULL won't work for CustomSearch or ReportTemplate because (in the absence of a weight) the value is copied over to weight. The value there is non-sensical as a weight -- for these, the weight should always be autogenerated and never copied.