Allow various item types in the Queue interface (not only string) and add appropriate tests