Ah, ignore this all discussion about RefType. I was looking at type in a wrong package. There is another type called RefType in dictionary.adb, the size depends on some values in autogenerated file. The problem was in the Makefile.
Attachment:
signature.asc
Description: Digital signature