Add unique index for resource template label.