initialize renamed initArray.
Allocates scalars via initScalar. Added support for this in nestForAlloc.