[PD] Dynamic creation and destruction of arrays