Added handling of queue type in pattern matching statements.