implement ipairs for lua types than handle numbers