Yeah the diagnostic is just wrong, it should be `array`, not `object`.