Fix issue with array of string ids when mapping relationships