Currently, the names section only allows naming the module, functions, and locals. It should allow for naming globals, or debuggers won't be able to attach friendly names to the globals being accessed. I suppose tables and memories should probably allow naming as well, although it's less likely in practice that there'll be more than one of those.