(Based on another MR, sorry) added tableSampleIterator and stuff in Actor.lua now actually uses a bit of both.