Fixed another edge case in subrange calculation.
Handle arrays of strings too.