DataUtils.arraysEqual: Added sanity check that arguments are arrays.