Added TemplateSafeness::resetSafeness() + tests