Prevent compilation for non-unique Template names

Short-circuit `__define__` to avoid compilation if the Template name has already been used (non-unique name).