fixes for luaffi, missing tonumber() etc