lua: tracking table accesses