Simplify Element.__setstate__ by using importlib.
Keep "_" in template names.
Fix syntax error.