Correctly handle moving dotted vars to the dmap.