Properly treat namespace-only events for `globalUnbind()` as pertaining to both `document` and `window`.

Events with only namespaces (`.name.space`, and also the empty string) should be treated by `globalUnbind()` as pertaining to both `document` and `window`, so no events will be left behind.

This is a followup from #779, should address the leak pointed out by #874.