Refactored usages of LogicUtil with ContainerUtil and Iterables.
Updated import parsing; added test for global import with alias.