Support out of index access
Merge pull request #4 from syohex/fix-invalid-index

Support out of index access