Your problem seems like it may be slightly different. If you were simlply referencing the class, I believe it would give you a NameError, then spout offf about undefined constants for the class.
You said it is occuring in Window_SaveFile?
Is it possible you are attempting to load/save data from an old file after you have made script changes?