fix support for arrays; typo fix