Added support for arrays.