feature: array based indexing operations

Fixes #245