Fixes issues in if statement AST optimizer
While eliminator