Add __pairs and __ipairs to data.
Fix detection of empty.