Emit the alias if it is indirectly used in export assignment

This change adds support for emitting the alias declaration if it is indirectly used in export assignment
Also enabled few test cases that werent running correctly
can you not return undefined here.   boolean methods should return true/false, not true/false/undefined.