Fix Lua error messages.
Replace luaL_check*/luaL_opt* calls by functions that throw exceptions.
Copy-pasting is evil.