Fix utGallery::writeTemplate missing metadata key error when input is also utGallery
New ID, same stuff as the old ID
Also write algID -2 correctly (haha oops)