Fix reexport of modules imported with restrictions
Consider the following two modules:
module Export where data Test = Test { test :: Test }
module Import (module Export) where import Export (Test(test))
When restricting the import of a data type from another module to its labels only (as above), the reexport of this module leads to an internal error:
cymake: Internal error: Exports.funDecl: QualIdent {qidModule = Just (ModuleIdent {midPosition = Position {file = ".curry/Export.icurry", line = 1, column = 11, astRef = }, midQualifiers = ["Export"]}), qidIdent = Ident {idPosition = Position {file = ".curry/Export.icurry", line = 2, column = 20, astRef = }, idName = "test", idUnique = 0}}