Changed to more obviously correct implementation of actor.queue, some cleanup, and added simple unit tests for actor.queue and actor.variable