added support for arrays #16