Added bool, index support for arrays and AA