Improved lua variable type detection in error reports.
Updated lua/script-test.
Added FUNCTION in lua::Script::VarType enum.
Updated lua/script-test.