Fix foreach on inline allocated arrays