Implement ArrayAccess in model.