core: expand_variable: Remove weird exceptions: begin, if.