added support for allocating space for massive struct arrays