added support for array indexing
tested with ros, prototype successful