use AstType instead of String in Symbol.getType(); add Rule mapping