Implement iterators for lua arrays and tables