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.

(cherry picked from commit e5a9a5dde9b69fc390453344c921cb93ac1ed0eb)