Simplification of IRManager#getCompilerPasses()

 * Added an equals for IRScope
 * removed IRScope as parameter in getCompilerPasses, as it is passed on run
 * Update for this in AST tool