core: priority_queue: simplify inheritance

If `data` is last, it can get as big as someone who wants to extend the priority queue likes to.