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
yes, I understand, but why? what is the value in not just having return false as the last statement of the function? the truthiness of the result still holds, it is more of a style issue..