Changed way that CSQueue is determined to be a LeafQueue or not to avoid reflection