Ported the few array APIs.