Refactor swoole_table iterator.