Replace luaL_typerror() calls to use exceptions.
Replace luaL_checktype() and luaL_checkany() calls.