Report error if exports or require is used for declaration name in external module

Fixes #63
typo: shouldn't