allow class.__module__ to be None

closes #3376