Fix no output_file for yaml and numpy analyzer serializers