Added code gen support for module declarations, imports, and identifier chains.