Arrays and lists can now be accessed by index. Resolves #49