added support for arrays of arrays and added release flag