ScriptNormalizer refactoring. Invalid script "repairing" commented out.