Fix the declaration emit for dotted module names