Added dumping of attributes in AST frontend
Fixed two bugs in mem2reg functionality in AST frontend
Added additional mem2reg testcase