made all the shooter tests pass again

There were a couple of little bugs in other stuff that broke the tests.
diff --git a/aos/linux_code/queue-tmpl.h b/aos/linux_code/queue-tmpl.h
index 98091cf..15029986 100644
--- a/aos/linux_code/queue-tmpl.h
+++ b/aos/linux_code/queue-tmpl.h
@@ -177,6 +177,7 @@
     queue_ = NULL;
     queue_msg_.set_queue(NULL);
   }
+  index_ = 0;
 }
 
 template <class T>