Common: fix for the case of shrinking of Array and String