Fix really compile-time errors in StateParser and related modules.