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
aren't we following rule of not returning false but using undefined (with no return statement instead) as false value?