Improved support for arrays