refactor ArrayFunction, ClosureFunction, ScriptParser/-Compiler