Fix #367: Really forbid export of constructors of js.Any
Fix #361: Forbid exporting local classes and objects