priority_queue: get rid of implicit vec copies