Reducing strictness on array content comparison