Fix for references for some backings

BigInteger -> ReferenceStruct because reference contain more info than
just id of obj.