Wrapping lua_type to return LUA_TNIL for unspecified parameters instead of LUA_TNONE