Grammer inheritance usage

IfSwitchReplacemet and related IdentifyBlocks grammars were rewritten to
use grammer inheritance (ANTLR v3.1 grammar composition mechanism).