array: mark array_length argument as const