Fix #313: Sanity checks for constructor and module exports