Fixed Array Access Operator Bug

The previous implementation was not thread safe and required
recomputation of the element when accessing using the same key. Now with
a map implementation both issues are solved.