Fix #313: Checks for ctor and module exports. Prevent trait exports