Use the newly added format detection function instead of ICFormat in save.cpp, and remove allvars.h header
Use the newly added format detection function instead of ICFormat in save.cpp, and remove allvars.h header

sbird/S-GenIC,sbird/S-GenIC,sbird/S-GenIC,sbird/S-GenIC