make-segment: avoid creating new empty arrays.