Segmentation fault in case of TRef and TRefArray circular-kind-of references