Move IDHeap to internal package