Fix PriorityQueue constructors. Modernize.