Array access support

This PR solves the first part of https://github.com/hoaproject/Ruler/issues/8.