SI-7215 Fix transpose of an empty Array[Array[T]].

Review by @JamesIry