Added type as optional 2nd parameter to `array`.