Alloc by value for arrays