New comparisonsWithArrayData function and bugfixes