Fix #353: Only export module accessor, not module class constructor
Fix #313: Sanity checks for constructor and module exports. Prevent trait exports