if a module exports one symbol, do not treat it as a global, regardless of the symbol's kind (#667)

Plus some test cleanup.