Fixed GWT compatibility.
Merge pull request #1992 from davebaol/ai-pq

PriorityQueue: fixed GWT compatibility.