support modules that export a single non-constructor function (#384)