some correction of type equal for array type refs