Make the generator module @safe, too.