Ah, so you did a migration through the CLI Shell with the "--with-local-disks" option on, which (drive)-mirrored the original vdevs to the target, but kept the local one for the linked template-childs.
Thus they kept working and the template couldn't be moved back..
Hmm, not sure if/how this could be really better, besides disallowing such cases..