TMDM-6962: "Investigate if "isEmptyOrNull" can be equivalent to "is empty list" on repeatable elements"

Add unit test to test feature.
Fix isEmpty support when repeatable field is at depth > 1 in record.
IsNull on a repeatable field is now considered same as IsEmpty.