update TextHeap to support constant/default by int ref