simplify code
add comment to luaH_next