Fix ICE on statics with fancy nullable enums.