Correct way to extract array_id in access relations

Issue # 2