SOURCE type input for model scripts missing getValue()
Return nil if value not found in luaGetValue()
Bad indentation
Refactored luaGetValue(), my previous fix was incorrect.
Merge pull request #1002 from projectkk2glider/lua_fixes

Lua fixes