fix error where messages were imported into the current namespace

Without this change emitted Enum names would look like ".Foo" rather
than "Foo" if the imports were done into the current namespace.