This might have something to do with an error I keep running into where if you have a static if statement with nothing but a case label, then sometime things go strange. I don't have a test case handy but I'll try to work one up sooner or later.