Re #8495. Fixing bug in comparing length of arrays.