add support for arrays of references