Correcting instantiation location of AutowiringEvents

Instantiation of the AutowiringEvents type registry must happen at the point where it is expected to be used, otherwise the linker may elect to COMDAT reduce out the enclosing module due to common scope rules.