Fix issue #47: type promotion in module scope.