Fix arrayUtils to handle ArrayAccess objects.