fix: compare same type objects in array.