I'll be glad when this insomnia wears off, I'd like to go to bed.
This is a fairly easy task to accomplish. Definitely something anyone could accomplish with a little work.
Hope this helps. BTW, I think this can be accomplish in the layer manager, but I'm not sure, I never open it.
Works fine for me. On->Off, Off->On, Frozen->Thawed, Thawed->Frozen
I even tested it on a file that has 730 layers (some even xrefed) with all assorted states. Everything was completely successful.