A better way to transform an array like to a real array.

And other small cosmetics.