TMDM-7226: "Can't delete record when inbound reference is repeatable and date typed"

Fix issue when a reference field is a inheritor of string or date type.