Test (non-)equality of array and object nodes