Modify the pers->trans conversion for cool based metadata
This recovers the lost information when the array index was stored as short instead of int (ATR-22116)
RD, could you please take a close look to see if I have missed anything. I have implemented it in such a way that it would also work if it is reading from integer.