Kixtart has a hardtime dealing with properties that return arrays. They cant be plugged directly into functions ... although I cant test this here, try assigning the array to a $variable first, then use it:

$IPAdresses = $Resource.IPAddresses

? VarType($IPAddresses)