Added support for arrays, iterables and collections.