Compatibility bug: lua_rawlen is the way to get the length of both tables and strings (but in Lua 5.0 there are different functions for these operations).