Implement ToString() and Equals() functions for AST nodes
Fix regression
Merge pull request #132 from ke-yu/StableBranchWithTestcases

Fix MAGN-865; Code clean up