Changed ScriptEngine to store functions and operator functions as unique_ptrs