Support object and array subscripting

Added support for expressions involving object and array subscripting, e.g. `foo.bar` and `arr[12]`.