* fixes #15076 * heapqueue: optimized for ARC * added another test case [backport:1.4] * code cleanup