Prefer first and last over [0] and [-1]
Merge pull request #173 from jdalbert/array_access

Prefer first and last over [0] and [-1]