Small fixes for PriorityQueue trait implementations.