Switch order of module removal from global lists
Switch order of module removal from global lists

[trivial not reviewed]

I was removing modules from userModules/allModules/mainModules after the call
to clean_gvec for gModuleSymbols occured, meaning that I was checking isAlive
on modules that were already deleted. This just switches the order so that we
remove modules from the user/all/main lists before deleting the modules AST and
removing it form gModuleSymbols.



git-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@23319 3a8e244f-b0f2-452b-bcba-4c88e055c3ca

sungeunchoi/chapel,hildeth/chapel,hildeth/chapel,hildeth/chapel,chizarlicious/chapel,hildeth/chapel,CoryMcCartan/chapel,chizarlicious/chapel,chizarlicious/chapel,sungeunchoi/chapel,chizarlicious/chapel,CoryMcCartan/chapel,hildeth/chapel,CoryMcCartan/chapel,sungeunchoi/chapel,CoryMcCartan/chapel,chizarlicious/chapel,sungeunchoi/chapel,sungeunchoi/chapel,CoryMcCartan/chapel,sungeunchoi/chapel,chizarlicious/chapel,sungeunchoi/chapel,sungeunchoi/chapel,hildeth/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,hildeth/chapel,chizarlicious/chapel