Node comparison methods on imperative ASTs

1. Implement Equality for imperative nodes
2. Imperative testcases
Merge pull request #1833 from junmendoza/imperativeNodeCompare

Node comparison methods on imperative ASTs