Optimizes the basic element access for array and hashlin.

We remove the conditional check and the position subtration,
precomputing adjusted base pointers.