Added support for indexing arrays.