Revert "access references like array"

This reverts commit 842e8146a30ef0b29530238abb55092a25986ac2.